package com.service.imput;

import com.dao.AddressDao;
import com.entity.Address;
import com.service.AddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("AddressService")
public class AddressServiceImp implements AddressService {

    @Resource
    private AddressDao addressDao;

    @Override
    public List<Address> finAddress() {
        return addressDao.finAddress();
    }

    @Override
    public Address addressId(int id) {
        return addressDao.addressId(id);
    }
}
